package com.dddexplained.designbootcamp.designpatterns.state.device.before;

public class MasterBoardShellState extends DeviceState {
    public MasterBoardShellState(TelnetService service) {
        super(service);
        System.out.println("In Master Board with Shell");
    }

    @Override
    public void login() {
        System.out.println("Not support");
    }

    @Override
    public void logout() {
        System.out.println("logout");
        service.setCurrentState(new InitialState(service));
    }

    @Override
    public void enterSlaveBoard() {
        System.out.println("enter slave board");
        service.setCurrentState(new SlaveBoardShellState(service));
    }

    @Override
    public void exitSlaveBoard() {
        System.out.println("Not support");
    }

    @Override
    public void enterUshell() {
        System.out.println("enter ushell");
        service.setCurrentState(new MasterBoardUshellState(service));
    }

    @Override
    public void exitUshell() {
        System.out.println("Not support");
    }
}
